﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using iDrive.Repository.Concrete;

namespace iDrive.Web.Controllers
{
    public class HomeController : Controller
    {
        EFDbContext dbContext = new EFDbContext();

        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            int count = dbContext.Images.Count();

            ViewBag.count = count;

            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
